<div class="option-picker">
	<div class="option-picker-inner">
		<div class="option-picker-cell goodinfo">
			<div class="closebtn"><i class="icon icon-guanbi1"></i></div>
			<div class="img"><img class='thumb' ng-src="{{tomedia(pagedata.goods.image) || '../core/resource/images/nopic.jpg'}}" /></div>
			<div class="info info-price text-danger">
					<span>
						￥
						<span class='price' style="font-weight:600">
						{{pagedata.options.price || '0.00'}}
						</span>
						<span ng-if="pagedata.options.oldprice" class='delete'>
						原价：{{pagedata.options.oldprice || '0.00'}}
						</span>
					</span>
			</div>
			<div class="info info-total">
					<span ng-if="pagedata.goods.isshowsales=='1'">库存 <span class='total'>{{pagedata.options.stock || 0}}</span> {{pagedata.goods.unit || '件'}}</span>
			</div>
			<div class="info info-titles" ng-if="pagedata.specs.length>0">请选择规格</div>
		</div>
		<div class="option-picker-options modal-swiper-y">
			<div ng-repeat="(k,spec) in pagedata.specs_list" class="option-picker-cell option spec">
			<div class="title">{{spec.title}}</div>
			<div class="select">
				 <a ng-repeat="item in spec.items" href="javascript:;" ng-click="pagedata.post.specid[k]=item.id;pagedata.get_optionsid();" ng-class="{'btn btn-default btn-sm nav spec-item':1,'btn-select':pagedata.post.specid[k]==item.id}"> {{item.title}} </a>
			</div>
			</div>
			<div class="fui-cell-group noborder" style="margin-top:0">
				<div class="fui-cell noborder">
				<div class="fui-cell-label">数量</div>
				<div class="fui-cell-info"></div>
				<div class="fui-cell-mask noremark">
					 <div class="fui-number">
						<div class="minus" ng-click="pagedata.minus()">-</div>
						<input class="num" type="text" name="" ng-model="pagedata.post.num"/>
						<div class="plus" ng-click="pagedata.plus()">+</div>
					</div>
				</div>
				<div style="line-height:1.5rem;color:#999;font-size:0.6rem;padding-left:0.2rem">{{pagedata.goods.unit || '件'}}</div>
				</div>
			</div>
		</div>
		<div class="fui-navbar" style="-webkit-box-shadow:0 0 0 rgba(0,0,0,0.1);">
			<a ng-if="pagedata.options.stock>0 && pagedata.goods.canbuy" aria-hidden="true" data-dismiss="modal" href="javascript:;" ng-click="pagedata.check_buy(1)" class="nav-item btn cartbtn" style="line-height:1.4;padding-top:0.3rem">
					<span>¥ <strong>{{pagedata.goods.price}}</strong><span style="font-size:0.5rem">(原价)</span></span>
					<span class="label" style="color:#fff;font-size:0.75rem">单独购买</span>
			</a>
			<a ng-if="pagedata.options.stock>0 && (!pagedata.seckillinfo ||  pagedata.seckillinfo.status!=1) && pagedata.goods.canbuy" aria-hidden="true" data-dismiss="modal" href="javascript:;" ng-click="pagedata.check_buy('',pagedata.post.teamid)" class="nav-item btn buybtn" style="line-height:1.4;padding-top:0.3rem">
					<span>¥ <strong>{{pagedata.goods.groupprice}}</strong><span style="font-size:0.5rem">(拼团价)</span></span>
					<span class="label" style="color:#fff;font-size:0.75rem">{{pagedata.post.teamid?'参与拼单':'发起拼单'}}</span>
			</a>
			<a ng-if="pagedata.options.stock<1 || (pagedata.post.num>pagedata.options.stock) || !pagedata.goods.canbuy" class="nav-item btn cartbtn">
					{{pagedata.goods.nobuytitle}}
			</a>
		</div>
    </div>	
</div>